package diamondRingService;

import diamondRingEntity.Admin;
import diamondRingEntity.DiamondRingEntity;

import java.util.List;

public interface AdminService {
    //后台登录
    int Login(Admin admin);
    //后台修改密码
    int UpdatePassword(Admin admin);
    //用户查询
    List<Admin> SelectAdmin();
    //按用户名查询
    List<Admin> SelectNameAdmin(String adminName);
    //按用户ID删除用户
    int DeleteIdAdmin(String ID);
    //查看用户信息
    List<Admin> SelectAdminInfoAdmin(String ID);
    //按用户ID修改用户信息
    int UpdateAdminInfo(Admin admin,String id);
    //添加用户
    int InsertAdminInfo(Admin admin);
    //商品查询
    List<DiamondRingEntity>getAll();
    //根据系列模糊查询商品
    List<DiamondRingEntity>vaugeFind(String vauge);
    //按钻戒ID查看钻戒信息
    List<DiamondRingEntity> LookDRinfo(int ID);
    //按用户ID修改商品信息
    int UpdateGoodsInfo(DiamondRingEntity diamondRingEntity,int id);
    //按ID下架商品
    int UpdateGoods(int id);
    //按ID上架商品
    int AddGoods(int id);
    //新增商品
    int Insert(DiamondRingEntity diamondRingEntity);
}
